package de.hwrBerlin.dataMining.view;

import java.util.ArrayList;
import java.util.List;

import de.hwrBerlin.dataMining.view.widgets.table.TableShower;

public class ListTableShower implements TableShower {

    @Override
    public List<String> getStringListFromRowObject(Object pObject) {
        List<String> returnList = new ArrayList<String>();
        if (pObject instanceof List<?>) {
            List<?> strings = (List<?>) pObject;
            for (Object object : strings) {
                returnList.add(object.toString());
            }
        }
        return returnList;
    }

}
